package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.LoginBean;
import cn.xfdzx.android.apps.shop.bean.NewOrderBeen;
import cn.xfdzx.android.apps.shop.contract.LoginContract;
import cn.xfdzx.android.apps.shop.contract.PayContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;
import retrofit2.http.Field;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class PayModel implements PayContract.Model {


    @Override
    public Flowable<NewOrderBeen> confirmOrder(String orderKey, String couponId, String marks, String payType, String pinkId, String seckill_id, String addressId, String useIntegral, String leftName, String rightName,String delivery_method,String logistics_type,String  order_express_type) {
        return  RetrofitClient.getInstance().getApi().xfdGoodsOrder( orderKey,  couponId,  marks,  payType,  pinkId,  seckill_id,  addressId,  useIntegral,  leftName,  rightName,delivery_method,logistics_type,order_express_type);
    }

    @Override
    public Flowable<NewOrderBeen> toPay(String from, String paytype, String uni) {
        return RetrofitClient.getInstance().getApi().orderPay(from,paytype,uni);
    }
}
